package com.itheima.mp;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * http://localhost:8080/doc.html#/home
 * --add-opens java.base/java.lang=ALL-UNNAMED  --add-opens java.base/java.lang.reflect=ALL-UNNAMED
 * @MapperScan("com.itheima.mp.mapper")
 * 因为 Mapper 类已经继承了 extends BaseMapper 所以不用添加@Mapper注解
 * 如果没有添加这个注解 @MapperScan时，需要在每个mapper上添加 @Mapper注解
 */
@MapperScan("com.itheima.mp.mapper")
@SpringBootApplication
public class MpDemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(MpDemoApplication.class, args);
    }

}

